package com.example.demo.entity;

import java.util.Date;
import javax.persistence.*;

@Table(name = "orders")
public class Orders {
    private String id;

    @Column(name = "user_id")
    private String userId;

    @Column(name = "goods_code")
    private String goodsCode;

    @Column(name = "order_time")
    private Date orderTime;

    @Column(name = "goods_amount")
    private Integer goodsAmount;

    @Column(name = "money_amount")
    private Double moneyAmount;

    /**
     * @return id
     */
    public String getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * @return user_id
     */
    public String getUserId() {
        return userId;
    }

    /**
     * @param userId
     */
    public void setUserId(String userId) {
        this.userId = userId;
    }

    /**
     * @return goods_code
     */
    public String getGoodsCode() {
        return goodsCode;
    }

    /**
     * @param goodsCode
     */
    public void setGoodsCode(String goodsCode) {
        this.goodsCode = goodsCode;
    }

    /**
     * @return order_time
     */
    public Date getOrderTime() {
        return orderTime;
    }

    /**
     * @param orderTime
     */
    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }

    /**
     * @return goods_amount
     */
    public Integer getGoodsAmount() {
        return goodsAmount;
    }

    /**
     * @param goodsAmount
     */
    public void setGoodsAmount(Integer goodsAmount) {
        this.goodsAmount = goodsAmount;
    }

    /**
     * @return money_amount
     */
    public Double getMoneyAmount() {
        return moneyAmount;
    }

    /**
     * @param moneyAmount
     */
    public void setMoneyAmount(Double moneyAmount) {
        this.moneyAmount = moneyAmount;
    }
}